var httpUtils = require('../../utils/httpUtils.js');
var utils = require('../../utils/util.js');
var app = getApp();
Page({
  data: {
    insuranceDetail: {}
  },
  onLoad: function(option) {
    var id = option.id;
    var url = app.globalData.interfaceUrl + '/insurance.do?method=insuranceDetail';
    var _this = this;
    httpUtils.post(url, {
      'id': option.id
    }, function(res) {
      console.log(res);
      var insuranceDetail = res.data.data;
      _this.setData({
        insuranceDetail: insuranceDetail
      });
    }, function(res) {
      console.log(res);
    });

  }
})